<?php
/**
 * Created by PhpStorm.
 * User: zhangjincheng
 * Date: 16-7-14
 * Time: 下午1:58
 */

/**
 * 选择数据库环境
 */
$config['amqp']['enable'] = 'false';
$config['amqp']['active'] = 'local';

/**
 * 本地环境
 */
$config['amqp']['local']['host'] = '192.168.20.231';
$config['amqp']['local']['port'] = 5672;
$config['amqp']['local']['user'] = 'guest';
$config['amqp']['local']['password'] = 'guest';
$config['amqp']['local']['vhost'] = '/';

$config['amqp']['asyn_max_count'] = 10;

$config['amqp']['publish']['enable'] = false;        // ??? by hb on 2018-01-17

$config['amqp']['consume']['enable'] = false;

# 配置消息消费进程监听队列名称(queue), 并发进程数(consurrent), 处理消息的业务类(class)
$config['amqp']['consumes'][0]['queue'] = 'TestConsumer';
$config['amqp']['consumes'][0]['concurrent'] = 1;
$config['amqp']['consumes'][0]['class'] = app\AMQPTasks\WsdAMQPTask::class;
/*
$config['amqp']['consumes'][1]['queue'] = 'TestDemoConsumer';
$config['amqp']['consumes'][1]['concurrent'] = 3;
$config['amqp']['consumes'][1]['class'] = app\AMQPTasks\WsdAMQPTask::class;
*/

/**
 * 最终的返回，固定写这里
 */
return $config;
